#!/bin/sh

cd $HOME/program_complex/fixed
make -f Makefile-fixed clean
cd $HOME/program_complex/movable
make -f Makefile-movable clean
cd $HOME/program_complex/krotov
make -f Makefile-krotov clean

cd $HOME/program_complex/models/fixed
find . -type f ! -regex ".*/\(params_fixed.txt\|sys.txt\)" -delete

cd $HOME/program_complex/models/movable
find . -type f ! -regex ".*/\(params_movable.txt\|sys.txt\)" -delete

cd $HOME/program_complex/models/krotov
find . -type f ! -regex ".*/\(params_krotov.txt\|sys.txt\)" -delete
